<?php

class filterHolder {
	var $filters = array();
	var $curFilter = 0;

	function __construct($aether) {
		//Reference variables
		$this->h = $aether->helpers;
	}
	
	function addArray($array) {
		//Loop through array values and add them
		if(!is_array($array)) {
			return false;
		}
		foreach($array as $item) {
			$this->add($item);
		}
	}
	
	function add($args) {
		//Add to filter array
		$this->filters[$this->curFilter] = $args;
		$this->curFilter++;
	}
	
	function trigger() {
		foreach($this->filters as $filter) { //Loop through filters
			$filter = explode(':', $filter);
			$helper = $filter[0]; //What helper?
			$function = $filter[1]; //What function?
			$this->h->$helper->$function(); //Get it
		}
	}
}

?>
